<?php
namespace app\api\validate;
use think\Validate;

class Chat extends Validate
{
    protected $rule = [
        'chatid'        =>  'require',
        'title'         =>  'require',
    ];

    protected $message = [
        'chatid.require'    => '会话ID参数不能为空!',
        'title.require'     => '会话标题参数不能为空!',
    ];

    protected $scene = [
        'edit'         =>  ['chatid','title'],
        'delete'       =>  ['chatid'],
    ];    
}